//
// Created by mac on 1/28/22.
//

bool isPowerOfTwo(int n) {
    if (n == 0) return false;
    long x = n;
    return (x & (x - 1)) == 0;

}
